package com.young.springdemo.service.xxl;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class XxlHandler {



    @XxlJob("follow")
    public ReturnT<String> execute(String param){
        XxlJobLogger.log("伴随任务执行了...");
        log.info("伴随任务执行了....,参数为:"+param);
        return ReturnT.SUCCESS;
    }
}
